//museum.js
//私藏博物馆
//获取应用实例
const app = getApp()

Page({
  data: {
    list: [],
  },

  onShow: function(options) {
    var self = this
    wx.request({
      url: app.serverUrl + 'Abouttwo/showMuseumlist',
      method: 'POST',
      header: {
        "Content-Type": "application/x-www-form-urlencoded"
      },
      data: {
        openid: app.openid,
        museumtagid:'3'
      },
      success: function(res) {
        console.log(res);
        self.setData({
          list: res.data.data,
        })
      },
    })
  },
  museumlist: function(res) {
    var self = this;
    console.log(res);
    var url = res.currentTarget.dataset.url;
    var museumid = res.currentTarget.dataset.museumid;
    var name = res.currentTarget.dataset.name;
    wx.navigateTo({
      url: '/pages/shgnext/shgnext' + '?museumid=' + museumid + '&name=' + name,
    })
  }


})